package com.yangxk.kadmin.generator.engine;

import com.yangxk.kadmin.generator.template.TemplateType;

public class TemplateEngineFactory {

    public static AbstractTemplateEngine getTemplateEngine(TemplateType templateType) {
        switch (templateType) {
            case treeTable:
            case relate:
            case crud:
                return new SimpleTemplateEngine();
            case report:
                return new ReportTemplateEngine();
        }

        return new SimpleTemplateEngine();
    }
}
